package demo3;

public class expression {

    public static void main(String[] args) {
        int ex1 = (2 + 3) * 4 - 5;

        int ex2 = 10;
        int ex3 = 30;

        if(ex2 % 3 == 0 && ex3 % 5 == 0)  {
            System.out.println("ex2和ex3都是3和5的倍数");
        } else {
            System.out.println("ex2和ex3不是3和5的倍数");
        }

        String str = "Hello World";
        System.out.println(str.charAt(0));
        System.out.println(str.length());
    }
}
